* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  display: grid;
  grid-template-rows: repeat(3, 200px);
  grid-template-columns: repeat(3, 200px);
  width: 600px;
  height: 600px;
  border: 1px solid red;
  margin: 100px auto;

  grid-template-areas:
    "a b c"
    "d e f"
    "g h i";
}

/* 
    第一种方法：可以通过网格线的编号设置
*/
/* .item:nth-child(1) {
  background-color: lightseagreen;
  grid-row-start: 2;
  grid-row-end: 3;
  grid-column-start: 2;
  grid-column-end: 3;
} */

/* 
    第二种方法：通过自定义网格的名字
*/
/* .item:nth-child(1) {
  background-color: pink;
  grid-row-start: e-start;
  grid-row-end: e-end;
  grid-column-start: e-start;
  grid-column-end: e-end;
} */

/* 
    第二种方式简写
*/
/* .item:nth-child(1) {
  background-color: pink;
  grid-row: e-start/e-end;
  grid-column: e-start/e-end;
} */


/* 
    grid-area
*/
.item:nth-child(1) {
    background-color: pink;
    grid-area: e;
}